wayland: Return the right type atom on gdk_selection_property_get()
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 29 Jun 2015 15:54:57 +0000 (17:54 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 29 Jun 2015 16:39:33 +0000 (18:39 +0200)
We mistakenly forced the "STRING" type, which was able to confuse higher
layer helpers like gtk_selection_data_get_uris(). This fixes a crash
happening anytime a drop is attempted on a GtkPlacesSidebar.

gdk/wayland/gdkselection-wayland.c

index 640fa4e11278786b8410a689d6f7162b9a75f08e..9da66cb53d82e9d3320ab0e8790656c7c4e9e67c 100644 (file)
@@ -991,7 +991,7 @@ _gdk_wayland_display_get_selection_property (GdkDisplay  *display,
   else
     {
       if (ret_type)
-        *ret_type = GDK_SELECTION_TYPE_STRING;
+        *ret_type = buffer_data->target;
       if (ret_format)
         *ret_format = 8;
     }